package com.example.messagemodule.adapter;

import android.widget.ImageView;

import androidx.annotation.Nullable;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.messagemodule.R;
import com.example.messagemodule.entity.MessageEtpConsultingDrugsEntity;

import java.util.List;

public class MessageEtpAdapter extends BaseQuickAdapter<MessageEtpConsultingDrugsEntity, BaseViewHolder> {
    public MessageEtpAdapter(int layoutResId, @Nullable List<MessageEtpConsultingDrugsEntity> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MessageEtpConsultingDrugsEntity item) {
        helper.setText(R.id.message_etp_consulting_drugs_name,item.getName());
        helper.setText(R.id.message_etp_consulting_drugs_norms,"规格："+item.getNorms());
        helper.setText(R.id.message_etp_consulting_drugs_amount,"X"+item.getAmount());
    }
}
